﻿using System;
using System.Collections.Generic;
using System.IO.Ports;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SPSAndong.Model
{
    /// <summary>
    /// SPS安东软件配置
    /// </summary>
    public class AppSetModel
    {
        /// <summary>
        /// com口名称
        /// </summary>
        public string PortName { get; set; }
        /// <summary>
        /// 波特率
        /// </summary>
        public int BaudRate { get; set; }
        /// <summary>
        /// 停止位
        /// </summary>
        public StopBits StopBits { get; set; }
        /// <summary>
        /// 奇偶校验位
        /// </summary>
        public Parity Parity { get; set; }

        /// <summary>
        /// ups查询间隔、单位秒
        /// </summary>
        public int ComQueryTimeSpan { get; set; }
        /// <summary>
        /// OPC服务地址
        /// </summary>
        public string OpcServerIP { get; set; }
        /// <summary>
        /// OPC变量前缀
        /// </summary>
        public string OpcValidatePrefix { get; set; }
        /// <summary>
        /// 语音播报监听IP地址
        /// </summary>
        public string VoiceListenIP { get; set; }
        /// <summary>
        /// 语音播报监听端口号
        /// </summary>
        public int VoiceListenPort { get; set; }
        /// <summary>
        /// OPC服务重连时间间隔
        /// </summary>
        public int OpcReConnTimeSpan { get; set; }
        /// <summary>
        /// OPC服务拉绳订阅时间戳，单位毫秒
        /// </summary>
        public int OpclsAdderssTimeSpan { get; set; }
        /// <summary>
        /// OPC服务IO通讯订阅时间戳，单位毫秒
        /// </summary>
        public int OpcioCommunicationAddressTimeSpan { get; set; }
        /// <summary>
        /// OPC服务异常监控时间戳，单位毫秒
        /// </summary>
        public int OpcioExMonitorAddressTimeSpan { get; set; }
        /// <summary>
        /// OPC服务加班时间订阅时间戳，单位毫秒
        /// </summary>
        public int OpctToAddressTimeSpan { get; set; }
        /// <summary>
        /// OPC服务
        /// </summary>
        public string OpcServerProgId { get; set; }
        /// 无线按钮线程调度，单位毫秒
        /// </summary>
        public int ButtonWorkDispatchTimeSpan { get; set; }
        /// <summary>
        /// 作业写数据库，单位毫秒
        /// </summary>
        public int WorkWriteDbTimeSpan { get; set; }
        /// 无线按钮序列化文件路径
        /// </summary>
        public string ButtonSerializeAddress { get; set; }
        /// <summary>
        /// 设备异常监控线程调度时间，单位毫秒
        /// </summary>
        public int SystemExceptionMonitorTimeSpan { get; set; }
        /// <summary>
        /// 设备异常监控记录频率，单位秒
        /// </summary>
        public int SystemExceptionRecordTimeSpan { get; set; }
        /// <summary>
        /// 异常呼叫时间，单位秒
        /// </summary>
        public int ExceptionCall { get; set; }
        /// <summary>
        /// 安东岗位更新时间戳，单位秒
        /// </summary>
        public int AndongShowRefresh { get; set; }
        /// <summary>
        /// 序列化文件地址
        /// </summary>
        public string Path { get; set; }
        /// <summary>
        /// License文件地址
        /// </summary>
        public string LicensePath { get; set; }
        /// <summary>
        ///  PLC IP 地址
        /// </summary>
        public string PLCIPAddress { get; set; }
        /// <summary>
        ///  LIP IP 地址
        /// </summary>
        public string LIPIPAddress { get; set; }
        /// <summary>
        ///  PING 时间间隔，单位秒
        /// </summary>
        public int PINGTimeSpan { get; set; }
        /// <summary>
        /// OPC服务加班时间更新时间戳，单位毫秒
        /// </summary>
        public int OpcioTimeoutTimeSpan { get; set; }
        /// <summary>
        /// 电脑空闲间隔时间,默认5分钟
        /// </summary>
        public int PCFreeTimeSpan { get; set; }
    }
}
